#import "/libs/cn-font.typ": *
#import "userinfo.typ": userinfo

#import "@preview/cuti:0.3.0": show-cn-fakebold
#show: show-cn-fakebold


#[
  #v(4pt)
  #align(
    top + left,
    image("/figure/usst-logo.svg", width: 6.4cm),
  )
  #v(52pt)
]

#[
  #set align(center)
  #set text(weight: "bold")

  #text(font: cnfont.华文楷体, size: 33pt)[本科毕业设计 (论文)]
  #v(-21pt)
  #text(font: "Times New Roman", size: fontsize.小四)[FINAL PROJECT/THESIS OF UNDERGRADUATE]
  #v(-2pt)
  #text(font: cnfont.华文楷体, size: fontsize.三号)[（#userinfo.session 届）]

  #v(70pt)

  #set text(weight: "bold")
  #align(center)[
    // #set par(leading:1em)
    #text(font: cnfont.华文中宋, size: fontsize.二号)[#userinfo.title]
    #v(21pt)
    #text(font: "Times New Roman", size: fontsize.小二)[#userinfo.title_en]
  ]
]

#[
  #show table.cell.where(x: 1): set text(font: cnfont.华文中宋)
  #v(10pt)
  #align(center)[
    #set text(font: cnfont.华文楷体, size: fontsize.四号, weight: "bold")
    #table(
      columns: (3.8cm, 7.5cm),
      gutter: 1pt,
      inset: 7.2pt,
      stroke: none,
      [学#h(2em)院], [#userinfo.institute], table.hline(start: 1),
      [专#h(2em)业], [#userinfo.major], table.hline(start: 1),
      [学生姓名], [#userinfo.name], table.hline(start: 1),
      [学#h(2em)号], [#userinfo.number], table.hline(start: 1),
      [指导教师], [#userinfo.mentor], table.hline(start: 1),
      [完成日期], [#userinfo.date.display()], table.hline(start: 1),
    )
  ]
]

#pagebreak(to: "odd")
